using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.DBModel
{
	public partial class Sys_Role : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _RoleName;
		/// <summary>
		/// RoleName
		/// </summary>
		[Entity(ColumnName = CNRoleName, IsNotNull = true)]
		public System.String RoleName
		{
			get { return _RoleName; }
			set
			{
				_RoleName = value;
				base.SetFieldChanged(CNRoleName) ;
			}
		}

		private System.Boolean _IsSysRole;
		/// <summary>
		/// IsSysRole
		/// </summary>
		[Entity(ColumnName = CNIsSysRole, IsNotNull = true)]
		public System.Boolean IsSysRole
		{
			get { return _IsSysRole; }
			set
			{
				_IsSysRole = value;
				base.SetFieldChanged(CNIsSysRole) ;
			}
		}

		private System.DateTime? _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime)]
		public System.DateTime? AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		private System.DateTime? _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(ColumnName = CNLastTime)]
		public System.DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				_LastTime = value;
				base.SetFieldChanged(CNLastTime) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNRoleName = "RoleName";
		public const string CNIsSysRole = "IsSysRole";
		public const string CNAddTime = "AddTime";
		public const string CNLastTime = "LastTime";
		#endregion

	}
}
